package com.example.demo.config.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by xiabin on 2017/7/14.
 */
@Component
public class Project {
    @Value("${project.author}")
    private String author="spring";
    @Value("${project.type}")
    private String type="springMVC";

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
